<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <link rel="stylesheet" href="https://g.alicdn.com/de/prismplayer/2.8.1/skins/default/aliplayer-min.css" />
    <script charset="utf-8" type="text/javascript"
        src="https://g.alicdn.com/de/prismplayer/2.8.1/aliplayer-min.js"></script>
</head>

<body>

    <div class="prism-player" id="J_prismPlayer"></div>
    <script>
        var player = new Aliplayer({
            id: 'J_prismPlayer',
            width: '100%',
            autoplay: false,
            cover: 'http://liveroom-img.oss-cn-qingdao.aliyuncs.com/logo.png',
            //播放方式二：支持凭证播放，加密视频
            encryptType: '1',//如果播放加密视频，则需设置encryptType=1，非加密视频无需设置此项
            vid: 'b021068ec29b71eebfcf6732b68e0102',
            playauth: 'eyJTZWN1cml0eVRva2VuIjoiQ0FJU2h3TjFxNkZ0NUIyeWZTaklyNWJtRXVQUTM3MFFnN1dnUVVMd2xFWStUOGthbXJiUGxqejJJSHBLZVhkdUFlQVhzL28wbW1oWjcvWVlsck1xRnNjWUZCU1pQSlFxc2N3TW9WLzRKcExGc3QySjZyOEpqc1VJeTc5dnZFZXBzdlhKYXNEVkVmbDJFNVhFTWlJUi8wMGU2TC8rY2lyWXBUWEhWYlNDbFo5Z2FQa09Rd0M4ZGtBb0xkeEtKd3hrMnQxNFVtWFdPYVNDUHdMU2htUEJMVXhtdldnR2wyUnp1NHV5M3ZPZDVoZlpwMXI4eE80YXhlTDBQb1AyVjgxbExacGxlc3FwM0k0U2M3YmFnaFpVNGdscjhxbHg3c3BCNVN5Vmt0eVdHVWhKL3phTElvaXQ3TnBqZmlCMGVvUUFQb3BGcC9YNmp2QWF3UExVbTliWXhncGhCOFIrWGo3RFpZYXV4N0d6ZW9XVE84MCthS3p3TmxuVXo5bUxMZU9WaVE0L1ptOEJQdzQ0RUxoSWFGMElVRXh6RVcrRmV2TC9wZ21RUGwvK0ZKTG9pdjltamNCSHFIeno1c2VQS2xTMVJM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xMDIvc25hcHNob3RzL2E2MTgxYmJjM2EyZTQ1Yzg4MTI2Yzc1OGQxMzdiNDZhLTAwMDAxLmpwZz9FeHBpcmVzPTE3MDkxNzE1MzEmT1NTQWNjZXNzS2V5SWQ9TFRBSXdrS1NMY1VmSTJ1NCZTaWduYXR1cmU9UTduQTkzUU53VkdEaDg5MXNuZXNienJKajBnJTNEIiwiRHVyYXRpb24iOjQuNTIxfSwiQWNjZXNzS2V5SWQiOiJTVFMuTlVTWVlkMmIxNHdLQ2RBcEZrQ0Y2dXNkdCIsIkFjY2Vzc0tleVNlY3JldCI6IkZRREtZZlU5WWtUelF5QUVGdFlVeDU2QW5GSERtZjRhNWZvVkNlQmtWcDRFIiwiUmVnaW9uIjoiY24tc2hhbmdoYWkiLCJDdXN0b21lcklkIjoxNTA1OTA1OTcyNzAzODQxfQ',
        }, function (player) {
            console.log('播放器创建好了。')
        });
    </script>

</body>

</html>